

<div id="right-col">

    <div class="wrap">
        <div class="container">

            
            
            <div class="inside">
                <div class="form">
                <?php if(isset($hasSent) && $hasSent==false):?>
                  
                    
                        <?php $form=$this->beginWidget('CActiveForm',array(
                            'id'=>'forgetpassword-form',
                            'enableClientValidation'=>true,    
                            'enableAjaxValidation'=>true,
                            'clientOptions'=>array(
                                    'validateOnSubmit'=>true,
                            ),
                        ));?>
                        <p class="note">Fields with <span class="required">*</span> are required.</p>

                        <?php echo $form->errorSummary($model); ?>

                        <div class="row">
                                <?php echo $form->labelEx($model,'email'); ?>

                                <?php echo $form->textField($model,'email'); ?>
                                <?php echo $form->error($model,'email'); ?>
                        </div>

                        <?php if(CCaptcha::checkRequirements()): ?>
                        <div class="row">
                                <?php echo $form->labelEx($model,'verifyCode'); ?>
                                <div>

                                <?php $this->widget('CCaptcha'); ?>

                                <?php echo $form->textField($model,'verifyCode'); ?>

                                </div>
                                <div class="hint">Please enter the letters as they are shown in the image above.
                                <br/>Letters are not case-sensitive.</div>
                                <?php echo $form->error($model,'verifyCode'); ?>
                        </div>
                        <?php endif; ?>

                        <div class="row buttons">
                                <?php echo CHtml::submitButton('Send'); ?>
                        </div>

                        <?php $this->endWidget() ;?>
                   
                <?php else:?>
                    Your new password has been send to <?=$model->email?>
                <?php endif?>
                    </div>
                    
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->